Make it more robust in the presence of empty context lines in unified hunks.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 19 Feb 2008 19:44:48 +0000 (19:44 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 19 Feb 2008 19:44:48 +0000 (19:44 +0000)
commit7ebb6e4b749c66a460d4253318633e17688d2332
treebd0068ba9282054960fc9c0cf0af968ede8dd3fb
parent5516f1603063abd7dff890b6098b4744b952197d
Make it more robust in the presence of empty context lines in unified hunks.
(diff-valid-unified-empty-line): New var.
(diff-unified->context, diff-sanity-check-hunk): Obey it.
(diff-end-of-hunk): Obey it.  New arg `donttrustheader'.
(diff-fixup-modifs, diff-post-command-hook): Use this new arg.
(diff-hunk-header-re-unified): New const.
(diff-font-lock-keywords, diff-hunk-header-re, diff-split-hunk)
(diff-fixup-modifs, diff-unified->context, diff-next-complex-hunk)
(diff-sanity-check-hunk): Use it.
lisp/ChangeLog
lisp/diff-mode.el